package com.shequan.weibo.service.impl;

import java.util.List;

import com.shequan.weibo.bean.pojo.TopicWeibo;
import com.shequan.weibo.bean.pojo.WeiboComment;
import com.shequan.weibo.dao.TopicWeiboDAO;
import com.shequan.weibo.dao.WeiboCommentDAO;
import com.shequan.weibo.service.WeiboService;
/**
 * 
 * <P>
 * Copyright 2012 shequaner.
 * 
 * All Rights Reserved.
* @author mazg
 * @version 1.0, 2012-3-24
 * @see com.shequan.weibo.service.impl.WeiboServiceImpl 
 * @since 1.0
 */
public class WeiboServiceImpl implements WeiboService {
	private TopicWeiboDAO topicWeiboDAO;
	private WeiboCommentDAO weiboCommentDAO;

	public List<TopicWeibo> queryWeiboByTopicId(int topicId) {
		List<TopicWeibo> topicWeiboList = topicWeiboDAO.queryWeiboByTopicId(topicId);
		return topicWeiboList;
	}

	public List<WeiboComment> queryWeiboCommentByWeiboId(int weiboId) {
		List<WeiboComment> commentList = weiboCommentDAO.queryWeiboCommentByWeiboId(weiboId);
		return commentList;
	}

	/**
	 * @param topicWeiboDAO
	 *            the topicWeiboDAO to set
	 */
	public void setTopicWeiboDAO(TopicWeiboDAO topicWeiboDAO) {
		this.topicWeiboDAO = topicWeiboDAO;
	}

	/**
	 * @param weiboCommentDAO
	 *            the weiboCommentDAO to set
	 */
	public void setWeiboCommentDAO(WeiboCommentDAO weiboCommentDAO) {
		this.weiboCommentDAO = weiboCommentDAO;
	}

}
